from django.urls import path
from . import views

urlpatterns = [
    # 列出所有学生和创建新学生
    path('students/', views.StudentListCreateView.as_view(), name='student_list_create'),

    # 获取、更新或删除单个学生
    path('students/<int:pk>/', views.StudentRetrieveUpdateDeleteView.as_view(), name='student_retrieve_update_delete'),
]